Skip to content

fix(frontend/kanban): honor server bucket redirect when dropping a recurring task on Done - #2621

Merged
kolaente merged 4 commits into
mainfrom
fix-recurring-kanban-ui-update
Apr 14, 2026
Merged

fix(frontend/kanban): honor server bucket redirect when dropping a recurring task on Done#2621
kolaente merged 4 commits into
mainfrom
fix-recurring-kanban-ui-update

Conversation

@tink-bot

Copy link
Copy Markdown
Collaborator

When a recurring task is dragged to the Done bucket, the backend correctly resets the task and returns a different bucketId in the response, but the frontend ignored that redirect — the card stayed visually in Done until the page was refreshed.

The guard in ProjectKanban.vue that was meant to detect a server-side bucket change was tautologically false because newTask.bucketId was assigned from the response one line before the comparison. Reordered so the comparison fires on the pre-response bucket.

Fixes #2618

@github-actions github-actions Bot added area/frontend Frontend-only code or UI work area/kanban Kanban view, buckets, bucket CRUD, done-bucket behavior concern/ux UX polish, ergonomics, workflow complaints without a clear bug labels Apr 14, 2026
@github-actions

github-actions Bot commented Apr 14, 2026

Copy link
Copy Markdown

Preview Deployment

Preview deployments for this PR are available at:

URL Tag Commit
https://pr-2621.preview.vikunja.dev ghcr.io/go-vikunja/vikunja:pr-2621 latest
https://sha-c68649faf4a527b74a49654f01096223f8b1a8b3.preview.vikunja.dev ghcr.io/go-vikunja/vikunja:sha-c68649faf4a527b74a49654f01096223f8b1a8b3 c68649f
https://sha-77167eb35671295a0a20837b77ee74ee35b8ac1f.preview.vikunja.dev ghcr.io/go-vikunja/vikunja:sha-77167eb35671295a0a20837b77ee74ee35b8ac1f 77167eb

The preview environment will start automatically on first visit. Subsequent pushes to this PR will update the pr-2621 image — the preview picks up the new version on restart. The per-commit URLs point to a specific version and will not change.

Run locally with Docker
docker pull ghcr.io/go-vikunja/vikunja:pr-2621
docker run -p 3456:3456 ghcr.io/go-vikunja/vikunja:pr-2621

Last updated for commit c68649f

test('Recurring task dropped on done bucket moves back to the default bucket', async ({authenticatedPage: page}) => {
// Reproduces https://github.com/go-vikunja/vikunja/issues/2618
const projects = await ProjectFactory.create(1)
await ProjectViewFactory.create(1, {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to seed and then override again later

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implemented in 830b546 — dropped the redundant second seed by setting done_bucket_id: 2 on the initial view create and pinning bucket IDs via {increment}.

@kolaente

Copy link
Copy Markdown
Member

auggie review

@augmentcode

augmentcode Bot commented Apr 14, 2026

Copy link
Copy Markdown
🤖 Augment PR Summary

Summary: Fixes a Kanban drag/drop edge case where recurring tasks dragged into the Done bucket are immediately redirected by the backend to another bucket, but the frontend kept rendering the card in Done until refresh.

Changes:

  • Adjusts the bucket-change guard in ProjectKanban.vue so it compares against the pre-response bucket state before applying the server’s bucketId to the local task.
  • Moves the local bucketId assignment to after the redirect check, allowing the UI to call kanbanStore.moveTaskToBucket when the server returns a different bucket.
  • Adds a new unit test file for kanban store moveTaskToBucket behavior.
  • Adds an e2e regression test reproducing Recurring events are not correctly moved in kanban #2618 to ensure a recurring task dropped on Done reappears in the default bucket without a refresh.

Technical Notes: The fix relies on honoring the bucketId returned by the task-bucket update endpoint and updating the Pinia store buckets accordingly.

🤖 Was this summary useful? React with 👍 or 👎

@augmentcode augmentcode Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. No suggestions at this time.

Comment augment review to trigger a new review at any time.

@kolaente
kolaente enabled auto-merge April 14, 2026 11:25
@kolaente
kolaente added this pull request to the merge queue Apr 14, 2026
Merged via the queue into main with commit 7227c59 Apr 14, 2026
37 checks passed
@kolaente
kolaente deleted the fix-recurring-kanban-ui-update branch April 14, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/frontend Frontend-only code or UI work area/kanban Kanban view, buckets, bucket CRUD, done-bucket behavior concern/ux UX polish, ergonomics, workflow complaints without a clear bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recurring events are not correctly moved in kanban

2 participants